home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2004 April / Gamestar_61_2004-04_dvdb.iso / DVDStar / Editace / hltp.exe / {app} / Source Code / MAP Viewer / TextureManager.h < prev    next >
C/C++ Source or Header  |  2003-10-09  |  1KB  |  47 lines

  1. /*
  2. Half-Life MAP viewing utility.
  3. Copyright (C) 2003  Ryan Samuel Gregg
  4.  
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9.  
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. GNU General Public License for more details.
  14.  
  15. You should have received a copy of the GNU General Public License
  16. along with this program; if not, write to the Free Software
  17. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  18. */
  19.  
  20. #pragma once
  21.  
  22. #include "WADLoader.h"
  23.  
  24. __gc class CTextureManager
  25. {
  26. private:
  27.     CConfig *Config;
  28.     CRichTextBox *txtConsole;
  29.  
  30.     ArrayList *Textures;
  31.  
  32. public:
  33.     CTextureManager(CConfig *Config, CRichTextBox *txtConsole);
  34.  
  35.     int AddTexture(String *TextureName);
  36.  
  37.     ArrayList *GetTextures();
  38.     Texture *GetTexture(int iIndex);
  39.     unsigned int GetID(int iIndex);
  40.     unsigned long GetWidth(int iIndex);
  41.     unsigned long GetHeight(int iIndex);
  42.     String *GetName(int iIndex);
  43.  
  44.     void LoadTextures(String *WADString);
  45.     void UpdateTextureFilter();
  46.     void DestroyTextures();
  47. };